package com.uxhao.eduservice.client;

import com.uxhao.commonutils.entity.vo.UcenterMemberInfoCommonVo;
import com.uxhao.eduservice.entity.adminVo.DashboardVo;
import com.uxhao.eduservice.entity.adminVo.LineChartVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

/**
 * 用户登录模块微服务发现
 * @author uxhao
 * @date 2021/1/22 17:35
 */
@FeignClient(name ="service-ucenter", fallback = UcenterFileDegradeFeignClient.class)
@Component
public interface UcenterClient {

    @GetMapping(value = "/educenter/ucenter/getInfoUc/{id}")
    UcenterMemberInfoCommonVo getInfo(@PathVariable("id") String id);

    @GetMapping(value = "/educenter/ucenter/countAllRegister")
    DashboardVo countAllRegister();


    @GetMapping(value = "/educenter/ucenter/countLastAndCurrentWeekRegister")
    Map<String, Object> countLastAndCurrentWeekRegister();


}
